import java.io.IOException;


public abstract class P2PFile {
	public long size;
	public String filename;
	public String sha_sb;
	public byte[] sha_md;
		
	public abstract byte[] getChunk(int num) throws IOException;
	public abstract boolean hasChunk();	//Retorna true se houver pelo menos 1 chunk
	public abstract boolean hasChunk(int num);
	/*public Vector<Integer> popAvailableChunks() throws IOException {	//Popular lista de chunks disponiveis
		FileInputStream in = null;
       
        in = new FileInputStream(filename);
        Vector<Integer> avlbChunks = new Vector<Integer>();
        int j=0;
        for (int i=0; in.read() != -1; i++) {        	
        	if ((i % 1024) == 0) {
        		avlbChunks.add(j);
        		j++;
        	}            		
        }
        
        return avlbChunks;
	}*/
}
